Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore autodocs cut-lines with empty what-hints #13013

Closed

Conversation

jdknight
Copy link
Contributor

Feature or Bugfix

  • Bugfix

Purpose

During typecheck improvements, a change accidentally removed the ability for autodoc's cut_lines call to run when no what-hints are provided. The what argument may be empty and an empty scenario should not stop the cut call from processing lines.

Example

An example documentation set configures cut_lines which has a rendering that excludes the leading line of the docstrings. However, a render (at the time of writing) using Sphinx 8.1.2 show docstrings not being cut.

Relates

During typecheck improvements [1], the change accidentally removed the
ability for autodoc's `cut_lines` call to run when no what-hints are
provided. The `what` argument may be empty and an empty scenario should
not stop the cut call from processing lines.

[1]: sphinx-doc#12933

Signed-off-by: James Knight <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants